clear variables
dbstop if error
clc
close all


im = peaks(100);
smoothMat = SmoothnessMatrix(im);